import request from '@/utils/request'

export default {
  // 条件查询
  queryByCondition(params){
    const url = "/socialized-science/vedio/queryByCondition"
    return request.post(url, params)
  },
  // 条件分页查询
  queryPageByCondition(params){
    const url = "/socialized-science/vedio/queryPageByCondition"
    return request.post(url, params)
  },
  // 审核
  audit(params){
    const url = "/socialized-science/vedio/audit"
    return request.put(url, params, { params })
  },
  // 修改并审核
  editAndAudit(params){
    const url = "/socialized-science/vedio/editAndAudit"
    return request.post(url, params)
  },
  // 添加
  add(params){
    const url = "/socialized-science/vedio/add"
    return request.post(url, params)
  },
  // 修改
  edit(params){
    const url = "/socialized-science/vedio/edit"
    return request.put(url, params)
  },
  // 批量修改
  edits(params){
    const url = "/socialized-science/vedio/edits"
    return request.put(url, params)
  },
  // 删除
  del(params){
    const url = "/socialized-science/vedio/del"
    return request.delete(url, { params })
  },
  // 批量删除
  delList(params){
    const url = "/socialized-science/vedio/delList"
    return request.delete(url, { params })
  },
  // 视频分组分页查询
  queryGroupPageByCondition(params){
    const url = "/socialized-science/vedio/queryGroupPageByCondition"
    return request.post(url, params)
  },
}
